package com.example.kami.test;

/**
 * <p>
 * ec
 * </p>
 *
 * @author HangLiu
 * @date 2022/3/14
 */
public class ecUrlController {
    public static void main(String[] args) {
        String a = getUrl("0");
    }


    public static String getUrl(String url) {
        if (url.contains("code/bind")) {
            url = "http://204.44.88.245:8101/yxyd/v1/login";
        }
        return url;
    }

    public static String getPjyUrl(String url) {
        if (url.contains("card/login")) {
            url = "http://204.44.88.245:8101/v1/pjy/login?key=BCABBNExpaNf87COmuyGAlG6kk8gV5ww";
        }

        if (url.contains("card/heartbeat")) {
            url = "http://204.44.88.245:8101/v1/pjy/heartbeat?key=BCABBNExpaNf87COmuyGAlG6kk8gV5ww";
        }

        if (url.contains("software/latest_ver")) {
            url = "http://204.44.88.245:8101/v1/pjy/latest_ver?key=BCABBNExpaNf87COmuyGAlG6kk8gV5ww";
        }
        return url;
    }
}
